a=input()
b=list(input())
for i in b:
    a=a.replace(i,'')
print(a)
